#简单的推导式
def p(p):
	print(p)


list1 = ['亚古兽','暴龙兽','机械暴龙兽','丧尸暴龙兽','战斗暴龙兽']
res = ['ss'+l+'ss' for l in list1]

p(res)

list1 = [2,3,45,65,7,90,81,2,53,132]


res = [l for l in list1 if l%2==0]
p(res)


#多个列表推导式
list1 = [1,2,3,4,5,6,7]
list2 = ['A','B','C','D','E','F','G']

res = [str(l1)+l2 for l1 in list1 for l2 in list2]

#进行一一对应
res = [str(l1)+l2 for l1 in list1 for l2 in list2 if list1.index(l1)==list2.index(l2)]
p(res)
